﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ru.NoteBoardPlus
{
    /// <summary>
    /// Extension methods
    /// </summary>
    static class Extensions
    {
        /// <summary>
        /// Remove trailing "/"
        /// </summary>
        /// <param name="String"></param>
        /// <returns></returns>
        public static string TrimEndSlash(this string String)
        {
            return String.EndsWith("/") ? String.Substring(0, String.Length - 1) : String;
        }
    }
}
